package handler

import (
	"github.com/gin-gonic/gin"
	"learning-pass/pkg"
)

func LoadRouter(r *gin.Engine) {
	r.POST("/user/register", Register)
	r.POST("/user/login", Login)
	r.Use(pkg.JWTAuth("2209a"))
	r.POST("/user/add/studyplan", AddUserStudyPlan)
	r.POST("/user/del/studyplan", DelUserStudyPlan)
}
